package command.command.impl;

import command.command.Command;
import command.receiver.Light;

/**
 * 具体命令: 关灯命令
 *
 * @author Liu Yicong
 * @date 2025/9/25
 */
public class TurnOffLightCommand  implements Command {
	private Light light;

	public TurnOffLightCommand(Light light) {
		this.light = light;
	}

	@Override
	public void execute() {
		light.turnOff();
	}
}
